cmake_minimum_required(VERSION 3.20.1)
project(ch5-RegistrationRANSAC)

set(CMAKE_CXX_FLAGS "-std=c++17")
set(Open3D_DIR /media/chyang/data/third_party/linux/open3d/lib/cmake/Open3D)  


# Open3D
find_package(Open3D HINTS REQUIRED)
list(APPEND Open3D_LIBRARIES dl)
if (Open3D_FOUND)
    message(STATUS "Found Open3D ${Open3D_VERSION}")
    link_directories(${Open3D_LIBRARY_DIRS})
endif()

# Add cpp files
add_executable(RegistrationRANSAC src/main.cpp)
target_link_libraries(RegistrationRANSAC ${Open3D_LIBRARIES})

